<script setup lang="ts">
import {reactive, toRef, toRefs} from "vue";

const person = reactive({name: "陶品奇", age: 22})

const name=toRef(person,"name")
console.log(name.value)

const {name:n,age:age}=toRefs(person)
console.log(n.value,age.value)
</script>

<template>
  <div class="app">

  </div>
</template>
